﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace UIWindows.Views
{
    /// <summary>
    /// ProductionHistory.xaml 的交互逻辑
    /// </summary>
    [Attributes.ViewFeature("生产历史", 2, true, Enums.AuthorityTypes.ALL, MaterialDesignThemes.Wpf.PackIconKind.WeatherCloudyClock)]
    public partial class ProductionHistory : UserControl
    {
        public ProductionHistory()
        {
            InitializeComponent();
        }

        private void TextBox_LostFocus(object sender, RoutedEventArgs e)
        {
            Barcode_Popup.IsOpen = false;
        }

        private async void Txt_Barcode_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Barcode_Popup.IsOpen = true;
            await Task.Delay(250);
            Txt_Focus.Focus();
        }
    }
}
